package com.testapis.test.controller;

import com.testapis.test.entity.User;
import com.testapis.test.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class UserController {
    @Autowired
    UserMapper userMapper;

    @GetMapping("/getAllUsers")
    public List<User> AllUsers(){
        return userMapper.getAllUsers();
    }
}
